#ifndef EGS_PLAYER_H
#define EGS_PLAYER_H

#include <nel/net/unified_network.h>
#include <nel/net/login_server.h>
#include <game_share/game_def.h>
#include <game_share/object_pool.h>


namespace EGS
{
	class CPlayer
	{
	public:
		CPlayer() : conFES(NLNET::TServiceId::InvalidId), conZS(NLNET::TServiceId::InvalidId), 
			        state(DEF::PLAYER_STATE_INIT)
			 { }


		NLNET::TServiceId	conFES;
		NLNET::TServiceId	conZS;
		uint8				state;

		DEF::UID            uid;

		//// from PDS
		//DB_RECORD::CRecordPlayer       RecordPlayer;

		//DEF::PID    getID()
		//{
		//	return RecordPlayer.id;
		//}

		//ucstring    getName()
		//{
		//	return RecordPlayer.name;
		//}


		void reset()
		{
			conFES = NLNET::TServiceId::InvalidId;
			conZS  = NLNET::TServiceId::InvalidId;
			state=DEF::PLAYER_STATE_INIT; 
		}
	};
}
#endif









